home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / BARNET / ARMLINUX / MAIL / 9807 / text0036.txt < prev    next >
Encoding:
Text File  |  1998-08-03  |  667 b   |  20 lines

  1. > The advantage of trapping unaligned accesses is that it reduces the number of 
  2. > ARM-specific hacks that are needed.  Various bits of the kernel assume that 
  3.  
  4. Its also a performance win big time to make the traps rare and to avoid 
  5. handling the entire world badly
  6.  
  7. egcs supports generating code that loads attribute(unaligned) fields
  8. with "safe" instructions. What I discussed on the phone with Russ was
  9. tweaking that a bit so its inheritable from variables - ie so we can
  10. write
  11.  
  12.     struct iphdr __unaligned *x=(struct iphdr __unaligned *)skb->h.raw;
  13.  
  14.  
  15. for the platforms its a problem
  16.  
  17. Alan
  18. unsubscribe: body of `unsubscribe linux-arm' to majordomo@vger.rutgers.edu
  19.  
  20.